package com.anolesoft.twelvePlan.entity;

import com.anolesoft.twelvePlan.listener.LocalDateTimeDeSerializer;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author zyq
 * @date 2022/3/5
 *
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("mes_history_fabinfo")
public class MesHistoryFabinfoDO implements Serializable {
    private static final long serialVersionUID = -5052606517674630913L;
    @TableId
    //private String objuid;
    //private String fabrecordid;//制造记录
    //private String partId;//图号
    //private Integer jgNum;//加工数量
    //private String worker;//工人
    //private String workType;//工种
    //private Integer deleteFlag;//删除标记 0：未删除 1：已删除
    //private String createUid;//创建人
    //private LocalDate createTime;//创建时间
    //private String modifyUid;//修改人
    //private LocalDate modifyTime;//修改时间
    //private String deleteUid;//删除人
    //private LocalDate deleteTime;//删除时间
    //private String factoryId;//厂代号
    private String objuid;
    private String fabrecordid;
    private String partid;
    private Integer jgnum;
    private String worker;
    private String worktype;
    private Integer deleteflag;
    private String createuid;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createtime;
    private String deleteuid;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime deletetime;
    private String modifyuid;
    @JsonDeserialize(using = LocalDateTimeDeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime modifytime;
    private String factoryId;
}
